home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mastering Web Site Development
/
Microsoft Mastering Web Site Development (Microsoft) (1997).iso
/
Media
/
Ch04
/
W04D100.cc2
< prev
next >
Wrap
Text File
|
1997-04-24
|
2KB
|
37 lines
0, In this demonstration, you will see how to use the
4, FrontPage Editor to add an ActiveX control to a
7, Web page. Open the file where you want to insert the
10, control with the FrontPage Editor. In the
17, FrontPage Editor, select where you want to insert the
20, control and select Insert, Other Components, ActiveX
25, Control. In the ActiveX Control Properties dialog
29, select the control that you want to insert from
31, the Pick a Control list box. For example, Calendar
35, Control. Set a name for the control in the Name
39, text box. For example, ShipDate. This adds the ID
44, attribute to the <OBJECT> tag. Set the code source
48, for the control in the Code Source text box. This
55, sets the CodeBase attribute to the <OBJECT> tag. If
59, you want, you can specify HTML that will be
63, displayed by browsers that don't support the <OBJECT>
65, tag. Enter that HTML in this HTML text box. Then,
72, click the Properties button to enter properties
75, specific to the control you're inserting. You can
79, resize the control in the Control Editor, and move it
83, around where you want it to be placed on the page.
87, You can set properties in the Properties dialog.
90, For example, you can set ShowTitle to be False.
96, When you have the control the way you want it to
97, look, select OK. Then close the ActiveX Control
103, Properties dialog. After you've inserted the ActiveX
107, control, you can re-edit the properties by
110, right-clicking on the control and selecting ActiveX Control
113, Properties. This brings up the ActiveX Control
116, Properties dialog and you can change any of the
119, properties that you previously set. Let's save this
123, page and see what it looks like in the Internet
126, Explorer, by selecting Preview in Browser. So, now
133, that you've added the ActiveX Calendar control to the
135, page you can add script code to run when the user
138, selects a date in the control.
141, END